package io.github.wslxm.springbootplus2.manage.sys.service.impl;

import io.github.wslxm.springbootplus2.core.base.model.BasePage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.wslxm.springbootplus2.core.base.service.impl.BaseServiceImpl;
import io.github.wslxm.springbootplus2.core.utils.XjBeanUtil;
import io.github.wslxm.springbootplus2.manage.sys.mapper.SysLogMapper;
import io.github.wslxm.springbootplus2.manage.sys.model.entity.SysLog;
import io.github.wslxm.springbootplus2.manage.sys.model.query.SysLogQuery;
import io.github.wslxm.springbootplus2.manage.sys.model.vo.SysLogVO;
import io.github.wslxm.springbootplus2.manage.sys.service.SysLogService;
import org.springframework.stereotype.Service;

/**
 * 操作记录表
 * <p>
 *  ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655 
 * </p>
 * @author wangsong
 * @email 1720696548@qq.com
 * @date 2020-10-28 20:44:32
 */
@Service
public class SysLogServiceImpl extends BaseServiceImpl<SysLogMapper, SysLog> implements SysLogService {

    @Override
    public BasePage<SysLogVO> findPage(SysLogQuery query) {
        Page<SysLogVO> page = new Page<SysLogVO>(query.getCurrent(), query.getSize());
        page.setRecords(baseMapper.findPage(page, query));
        return XjBeanUtil.pageVo( page);
    }
}
